 ///
 /// @file    MutexLock.h
 /// @author  lemon(haohb13@gmail.com)
 /// @date    2016-03-03 11:10:32
 ///

#ifndef __MUTEX_LOCK_H__
#define __MUTEX_LOCK_H__

#include <iostream>

class MutexLock
{
public:
	MutexLock();
	~MutexLock();

	void lock();
	void unlock();

	pthread_mutex_t * getMutexPtr();

private:
	pthread_mutex_t _mutex;
};

#endif
